package com.hs.zookeeper;

import com.hs.zookeeper.service.ZnodeService;
import com.hs.zookeeper.service.impl.ZnodeServiceImpl;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.ZooDefs;

/**
 * @Author: songhao
 * @Date: 2020/12/28
 * @Description: TODO
 */
public class ZkCommand {

    public static void main(String[] args) {
        ZnodeService nodeService = new ZnodeServiceImpl();
        nodeService.createNode("/mysql","localhost:3306", ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
    }
}
